<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.console.libs.templates.skel.views.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php __('Hệ thống quản lý đoàn vụ'); ?>
		<?php //echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css(array('cake.generic','menu','tabs','login'));
		echo $this->Html->css('jquery-ui');
		echo $this->Html->css('jquery.jstree');
		echo $this->Html->css('jquery.ui.datepicker');
		echo $this->Html->css('jquery.ui.tabs');
		
		echo $this->Html->script('jquery-1.7.1.min');
		echo $this->Html->script('jquery-ui-.custom.min');
		echo $this->Html->script('jquery.jstree');
		echo $this->Html->script('jquery.ui.datepicker');
		echo $this->Html->script('numberformat');
        echo $this->Html->script(array('jquery.wordFilter','checkall'));
        echo $this->Html->css('jquery.multiselect');
	 	echo $this->Html->script('jquery.multiselect');
	 	echo $this->Html->css(array('jquery.ui.button','jquery.ui.position','jquery.ui.autocomplete'));
	 	echo $this->Html->script(array('jquery.ui.button','jquery.ui.position','jquery.ui.autocomplete','autocombo')); 
        echo $this->Html->css('jquery.ui.accordion');
        echo $this->Html->script('jquery.ui.accordion');
        echo $this->Html->script('date');
        
		echo $scripts_for_layout;
	?>
</head>
 <script>
   $(function() {
		$( "#calen" ).datepicker();
	
	});

    </script>
<body>

        <div id="container">
		<div id="logo">
        <p>Hệ thống quản lý</p>
        <h1>CÔNG TÁC ĐOÀN VỤ</h1>
        <h2>Khoa Công nghệ thông tin & Truyền thông - Đại học Cần Thơ</h2>
        </div>
		<div id="content">
            <div class="actions">
                   
                    <div class="ten" id='div_donvi'>MENU</div>
                    <?php If(!empty($user)) echo $this->element('menu'); ?>
                    
                    <div id="calendar" style="float: left; margin-top: 7px">
                       <div style="float: left;" id="calen">
                        </div>
                    </div>
                    <div id="footer">
                        <p><b><?php echo $this->Html->link(__('Đềa tài nghiên cứu khoa học cấp trường năm 2011', true), array('controller'=>'pages','action' => 'about')); ?></b></p>
                        <p><b>Thực hiện:</b> Nhóm nghiên cứu khoa học năm 2011</p>
                        <p><b>Thời gian:</b> 07/2011 - 03/2012</p>
                      <p><b>Đơn vị:</b> Khoa Công nghệ thông tin & Truyền Thông - ĐHCT</p>
            		</div>
                    
            </div>
            <div class="noidung">
                <div id="info">
                    <div id="user">
                         <?php 
                         If(!empty($user)){
            		        echo '<ul>';      
                            echo '<li>Tài khoản: <b>';
                            echo $user['Z1user'] ['maso'].'</b></li>';
                        echo '<li>Họ tên: <b>';
                        echo $user['Z1user'] ['hoten'].'</b></li>';
                        echo '<li>Chi đoàn: <b>';
                        echo $user['Z1user'] ['tenchidoan'].'</b></li>'; //
                        echo '<li style="border: none">'.$html->image('logout.png', array('url'=> array('controller'=>'users', 'action'=>'logout'))).'</li>';
                        echo '</ul>';
                        }
                        ?>
                    </div>
                </div>
                <div style="overflow: auto;height:auto; padding-bottom: 15px; padding-bottom:50px; background: #fff;" align="left">
                    <?php echo $this->Session->flash(); ?>
                    <?php echo  $this->Session->flash('auth');?>
        			<?php echo $content_for_layout; ?>
                </div>
            </div>
		</div>
		
	</div>
	<?php echo $this->element('sql_dump'); ?>
	<?php echo $this->Js->writeBuffer();?>
</body>
</html>